AcceptCookies
AcceptCookies
The AcceptCookies component is a React component that displays a toast notification asking the user to accept the Terms of Service and Privacy Policy. It uses the react-cookie library to manage the cookie that stores the user's acceptance status.
Usage
import AcceptCookies from './AcceptCookies';
const MyComponent = () => {
return (
<div>
<AcceptCookies />
{/* Other content */}
</div>
);
};
Props
This component does not accept any props.
Styling
The component uses react-bootstrap components for styling, including ToastContainer, Toast, Accordion, Row, and Col. It also uses inline styles for some elements.
Notes
- This component requires the
react-cookieandreact-bootstraplibraries to be installed. - The component uses the
FaHandshakeandFaHandSpockicons from thereact-iconslibrary. - The component sets a cookie named
accept-cookie-policyto store the user's acceptance status. - The component displays links to the Privacy Policy and Terms of Service on the Valkyr Labs website.